package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.UserTravel;
import cn.wolfcode.luowowo.common.query.TravelQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTravelMapper {
    int insert(UserTravel record);

    List<UserTravel> selectAll();

    List<UserTravel> selectByUserIdAndTravelId(@Param("userId") Long userId, @Param("travelId") Long travelId);

    void deleteByUserIdAndTravelId(@Param("userId") Long userId, @Param("travelId") Long travelId);

    void deleteIsFavor(@Param("userId") Long userId, @Param("travelId")Long travelId);
}